<template>
    <div>
        <el-table
            :data="orderDetail"
            border
            style="width: 100%">
            <el-table-column
            fixed
            prop="id"
            label="序号"
            width="150">
            </el-table-column>
            <el-table-column
            prop="order_no"
            label="订单编号"
            width="auto">
            </el-table-column>
            <el-table-column
            prop="guide_name"
            label="导购名称"
            width="auto">
            </el-table-column>
            <el-table-column
            prop="amount"
            label="成交价"
            width="auto">
            </el-table-column>
            <el-table-column
            prop="ori_price"
            label="原价"
            width="auto">
            </el-table-column>
            <el-table-column
            prop="base_price"
            label="底价"
            width="auto">
            </el-table-column>
            <el-table-column
            prop="commission"
            label="结算金额"
            width="auto">
            </el-table-column>
        </el-table>
    </div>
</template>
<script>
export default {
    props:{
        orderNo:{
            type:String,
            default:''
        },
        shopType:{
            type:String,
            default:''
        }
    },
    data(){
        return{
            orderDetail:[],
            page:1,
            pagesize:10,
            // order_no:''
        }
    },
    watch:{
        orderNo(val){
            console.log(val,'订单号--');
            // this.order_no = val
            // this.getGuideOrderDetail()
        },
        shopType(val){
            console.log(val);
            if(val=='1'){

            }
        }
    },
    methods: {
        // 获取导购结算明细
        getGuideOrderDetail(){
            // console.log(this.orderNo,'订单号');
            let params = {
                order_no:this.orderNo,
                page:this.page,
                pagesize:this.pagesize
            }
            this.$http.post('/api/root/settle/guideOrderDetail',params).then(res=>{
                console.log(res,'导购结算明细');
                if(res.code==1){
                    this.orderDetail = res.data.list?res.data.list:[]
                }
            })
        },
    },
}
</script>
<style lang="less">

</style>


